.PHONY= doc clean

CC=g++
OPTIONS= -g -Wextra  -Wall  -Wshadow

DEBUG=
LIBDIR=lib
INCLUDEDIR=include
_OBJ= AnalizadorDatos.o RamificacionYPoda.o
OBJ = $(patsubst %,$(LIBDIR)/%,$(_OBJ))

all:main

D:
	geany ./lib/*.cc ./include/*.h ./src/main.cc &

main: ./src/main.cc $(OBJ)
	$(CC) $(OPTIONS) $(DEBUG) -I$(INCLUDEDIR) ./src/main.cc $(OBJ) -o daa


$(LIBDIR)/%.o : $(LIBDIR)/%.cc $(INCLUDEDIR)/%.h
	$(CC) $(OPTIONS) $(DEBUG) -c -I$(INCLUDEDIR) -o $@ $<


clean:
	clear
	rm -f $(OBJ) ./salida* ./valgrind* ./difer* daa
